package com;

public class LoadAppString {
	private static String appsHtml = "";
	private static String usersList = "";
	private static String sayHello = "";
	
	public static void cleanApps(){
		appsHtml = "";
	}
	
	public static void cleanUsers(){
		usersList = "";
	}

	public static void setHello(String userName, int num){
		if(num == 0){
			sayHello = "";
		}else if(num == 5){
			sayHello = "";
		}else{
			sayHello = "";
		}
	}
	
	public static void setExtend(String name, String url){
		appsHtml += "<li class=\"top\">"
			+ "<a href=\"" +  url + "\"  target=\"_blank\" class=\"top_link\">"
			+ " <span>" + name + "</span>"
			+ "</a></li>";
	}
	
	public static void setUserList(String userId, String userName){
		usersList += "<li>"
			+ "<a href=\"Load?appUserId=" + userId + "\" target=\"_blank\">"
			+ userName
			+  "</a></li>";			
	}
	
	public static String getAppsHtml(){		
		return appsHtml;
	}
	
	public static String getUserList(){
		if(usersList.equals(""))
			return "点击下面按钮添加您的应用";
		return usersList;
	}
	
	public static String getHello(){
		return sayHello;
	}
	
}
